﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using SqlSugar;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 库存调拨
/// </summary>
[Tenant("1300000000001")]
[SugarTable("allocate", "库存调拨")]
public class Allocate : EntityBaseDel
{
    /// <summary>
    /// 调拨单号
    /// </summary>
    [SugarColumn(ColumnName = "AllocateCode", ColumnDescription = "调拨单号", Length = 32)]
    public virtual string? AllocateCode { get; set; }
    
    /// <summary>
    /// 单据状态
    /// </summary>
    [SugarColumn(ColumnName = "Documents", ColumnDescription = "单据状态", Length = 32)]
    public virtual string? Documents { get; set; }
    
    /// <summary>
    /// 调拨日期
    /// </summary>
    [SugarColumn(ColumnName = "AllocateData", ColumnDescription = "调拨日期")]
    public virtual DateTime? AllocateData { get; set; }
    
    /// <summary>
    /// 调拨类型
    /// </summary>
    [SugarColumn(ColumnName = "AllocateType", ColumnDescription = "调拨类型")]
    public virtual long? AllocateType { get; set; }
    
    /// <summary>
    /// 调入仓库
    /// </summary>
    [SugarColumn(ColumnName = "Moveehouse", ColumnDescription = "调入仓库", Length = 32)]
    public virtual string? Moveehouse { get; set; }
    
    /// <summary>
    /// 调出仓库
    /// </summary>
    [SugarColumn(ColumnName = "Pullhouse", ColumnDescription = "调出仓库", Length = 32)]
    public virtual string? Pullhouse { get; set; }
    
    /// <summary>
    /// 入库状态
    /// </summary>
    [SugarColumn(ColumnName = "StorageId", ColumnDescription = "入库状态", Length = 32)]
    public virtual string? StorageId { get; set; }
    
    /// <summary>
    /// 调拨数量
    /// </summary>
    [SugarColumn(ColumnName = "AllocateNum", ColumnDescription = "调拨数量")]
    public virtual int? AllocateNum { get; set; }
    
    /// <summary>
    /// 调拨金额
    /// </summary>
    [SugarColumn(ColumnName = "AllocatePrice", ColumnDescription = "调拨金额")]
    public virtual int? AllocatePrice { get; set; }
    
    /// <summary>
    /// 经办人ID
    /// </summary>
    [SugarColumn(ColumnName = "OrganizationalStructureId", ColumnDescription = "经办人ID")]
    public virtual long? OrganizationalStructureId { get; set; }
    
    /// <summary>
    /// 调拨货物
    /// </summary>
    [SugarColumn(ColumnName = "AllocateGoods", ColumnDescription = "调拨货物")]
    public virtual long? AllocateGoods { get; set; }
    
    /// <summary>
    /// 制单时间
    /// </summary>
    [SugarColumn(ColumnName = "PreparationData", ColumnDescription = "制单时间")]
    public virtual DateTime? PreparationData { get; set; }
    
    /// <summary>
    /// 审核Id
    /// </summary>
    [SugarColumn(ColumnName = "Audit", ColumnDescription = "审核Id")]
    public virtual long? Audit { get; set; }
    
    /// <summary>
    /// 审核时间
    /// </summary>
    [SugarColumn(ColumnName = "AuditData", ColumnDescription = "审核时间")]
    public virtual long? AuditData { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 32)]
    public virtual string? Remark { get; set; }
    
}
